<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<style>
table {
	border-collapse: collapse;
}

table tr td {
	border: 1px solid #bad4aa;
	font-size: 11px;
	padding: 6px 6px 6px 12px;
	color: #4f6b72;
}
</style>


<div>
	<table width="100%" bgcolor="#F5F5F5" cellpadding="0" cellspacing="0"
		align="center">
		<tr align="center" bgcolor="#bbdd61" height="30">
			<th width="200" align="center">
				规则种类
			</th>
			<th align="center">
				简介
			</th>
			<th width="130" align="center">
				状态及操作
			</th>
			<th width="125" align="center">
			</th>
		</tr>
		<tbody>
		    
			<tr align="center" height=45>
				<td>
					<span class="fb f18"> 按温度推荐 </span>
				</td>
				<td class="f14">
					根据买家所在城市的温度来推荐宝贝
				</td>
				<s:if test="'TF_M_USER_RULE_TEMP'==ruleType">
					<td>
						<span class="fb f14">正在使用</span>
					</td>
					<td>
						<a
							href="<s:url value='/jsp/rule_settings/temperature/temperature.jsp'/>">
							<img class="_button" src="<s:url value='/img/add_rule.png'/>" />
						</a>
					</td>
				</s:if>
				<s:if test="'TF_M_USER_RULE_TEMP'!= ruleType">
					<td>
						<a href="javascript:let_it_valid('TF_M_USER_RULE_TEMP')">我要使用这个规则</a>
					</td>
					<td>
					</td>
				</s:if>
			</tr>
			<tr align="center" height=45>
				<td>
					<span class="fb f18"> 按城市推荐 </span>
				</td>
				<td class="f14">
					给不同地方的买家推荐不同的宝贝
				</td>
				<s:if test="'TF_M_USER_RULE_AREA'==ruleType">
					<td>
						<span class="fb f14">正在使用</span>
					</td>
					<td>
						<a href="<s:url value='/jsp/rule_settings/area/area.jsp'/>"> <img
								class="_button" src="<s:url value='/img/add_rule.png'/>" /> </a>
					</td>
				</s:if>
				<s:if test="'TF_M_USER_RULE_AREA'!= ruleType">
					<td>
						<a href="javascript:let_it_valid('TF_M_USER_RULE_AREA')">我要使用这个规则</a>
					</td>
					<td>
					</td>
				</s:if>
			</tr>
			<tr align="center" height=45>
				<td>
					<span class="fb f18"> 按日期推荐 </span>
				</td>
				<td class="f14">
					设置某个时间段内要推荐的宝贝,非常适合限时促销
				</td>
				<s:if test="'TF_M_USER_RULE_DATETIME'==ruleType">
					<td>
						<span class="fb f14">正在使用</span>
					</td>
					<td>
						<a
							href="<s:url value='/jsp/rule_settings/datetime/datetime.jsp'/>">
							<img class="_button" src="<s:url value='/img/add_rule.png'/>" />
						</a>
					</td>
				</s:if>
				<s:if test="'TF_M_USER_RULE_DATETIME'!= ruleType">
					<td>
						<a href="javascript:let_it_valid('TF_M_USER_RULE_DATETIME')">我要使用这个规则</a>
					</td>
					<td>
					</td>
				</s:if>
			</tr>
			<tr align="center" height=45>
				<td>
					<span class="fb f18"> 按时间段推荐 </span>
				</td>
				<td class="f14">
					根据一天中的时间段(如白天、晚上)推荐不同的宝贝
				</td>
				<s:if test="'TF_M_USER_RULE_TIME'==ruleType">
					<td>
						<span class="fb f14">正在使用</span>
					</td>
					<td>
						<a href="<s:url value='/jsp/rule_settings/time/time.jsp'/>"> <img
								class="_button" src="<s:url value='/img/add_rule.png'/>" /> </a>
					</td>
				</s:if>
				<s:if test="'TF_M_USER_RULE_TIME'!= ruleType">
					<td>
						<a href="javascript:let_it_valid('TF_M_USER_RULE_TIME')">我要使用这个规则</a>
					</td>
					<td>
					</td>
				</s:if>
			</tr>
			<tr align="center" height=45>
				<td>
					<span class="fb f18"> 随机推荐</span>
				</td>
				<td class="f14">
					随机推荐店铺中的宝贝，让每一个宝贝都有展示的机会
				</td>
				<s:if test="'TF_M_USER_RULE_RANDOM'==ruleType">
					<td>
						<span class="fb f14">正在使用</span>
					</td>
					<td>
						<a href="<s:url value='/jsp/rule_settings/random/random.jsp'/>">
							<img class="_button" src="<s:url value='/img/add_rule.png'/>" />
						</a>
					</td>
				</s:if>
				<s:if test="'TF_M_USER_RULE_RANDOM'!= ruleType">
					<td>
						<a href="javascript:let_it_valid('TF_M_USER_RULE_RANDOM')">我要使用这个规则</a>
					</td>
					<td>
					</td>
				</s:if>
			</tr>
		</tbody>
	</table>
</div>